from abc import ABC, abstractmethod

class MyAbstractClass(ABC):
    @abstractmethod
    def method1(self):
        pass

    @abstractmethod
    def method2(self):
        pass

class MyClass(MyAbstractClass):
    def method1(self):
        print("Method 1 implementation")

    def method2(self):
        print("Method 2 implementation")

# 这将引发 TypeError，因为 MyAbstractClass 是抽象类
# obj = MyAbstractClass()

obj = MyClass()
obj.method1()
obj.method2()